package com.mj.app.health.customer;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * ========================================
 * *
 * title: ListViewNoScroll
 * description:
 * *
 * Created by David Hogan on 2018/3/2.
 * ========================================
 */

public class ListViewNoScroll extends ListView {

    public ListViewNoScroll(Context context) {
        super(context);
    }

    public ListViewNoScroll(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int specHeight = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE>>2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, specHeight);
    }
}
